<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <?php include_http_metas() ?>
    <?php include_metas() ?>
    <?php include_title() ?>
    <link rel="shortcut icon" href="/favicon.ico" />
    <?php include_stylesheets() ?>
    <?php include_javascripts() ?>
  </head>
  <body>
    <div id="wrapper">
      <!--###### HEADER START ######-->
      <div id="header">
        <div id="logo">
          <?php echo link_to(image_tag(sfConfig::get('app_logo')),'@homepage')?>
        </div>

        <div id="search">
	   <p><?php echo sfConfig::get('app_phone')?><br /><?php echo sfConfig::get('app_email')?></p>
          <!--
          <input id="" type="text" name="" />
          <input id="" type="submit" value="search" />
          <a href="search.html">Advanced</a>
          -->
        </div>

        <div id="nav">
          <ul>
            <li id="noborder"><?php echo link_to('HOME','@homepage')?></li>
            <li><?php echo link_to('STOCK LIST','stocklist/index?type=all')?></li>
            <!--<li><a href="">ORDER NOW</a></li>-->
            <li><?php echo link_to('SPECIALS','stocklist/index?type=specials')?></li>
            <!--<li><?php echo link_to('FINANCE','staticpage/index?slug=finance')?></li>-->
            <li><?php echo link_to('ABOUT US','staticpage/index?slug=about_us')?></li>
            <li><?php echo link_to('CONTACT US','staticpage/index?slug=contact_us')?></li>
          </ul>
        </div>
      </div>
      <!--###### HEADER END ######-->
      <?php if(sfContext::getInstance()->getModuleName()!='vehicle' && sfContext::getInstance()->getModuleName()!='staticpage'):?>
      <div id="left">
        <div id="contact">
          <img src="/images/master/contact.gif" alt="contact"/>
          <p><span id="contacttitle">CONTACT:</span> <br />xxxx xxx xxx<br /> <br />302 Queen St, <br />Auckland CBD<br />
            <a href="contactus.html">Click HERE to enquire</a>
            <a href="mailto:test@example.com">test<br />@example.com</a>
          </p>
        </div>
          <?php include_component('home', 'maketree');?>
      </div><!-- *** left end *** -->
      <?php endif;?>


      <!--###### LAYOUT START ######-->
      <div id="content">
        <?php echo $sf_content ?>
      </div>

      <!--###### FOOTER START ######-->
      <div id="footer">
        <div id="partners">
          <a href="">NZ Discount Car Rentals *</a>
          <a href=""> Rorotonga Car Rentals *</a>
          <a href=""> Holiday Home in Rarotonga *</a>
          <a href=""> McCahon Trust *</a>
        </div>
        <div id="copyright">
          <p>
					Copyright &copy; 2011 Your motors Ltd.
          </p>
        </div>
      </div>
      <script type="text/javascript">

        var _gaq = _gaq || [];
        _gaq.push(['_setAccount', '<?php echo sfConfig::get('app_google_analytic_key')?>']);
        _gaq.push(['_trackPageview']);

        (function() {
          var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
          ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
          var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
        })();

      </script>
      <!--###### FOOTER END ######-->
    </div>
  </body>
</html>
